import request from '@/utils/request'

// 获取员工列表
export const getEmployeeListAPI = params => {
  return request.get('/park/sys/user', { params })
}

// 查询所有角色
export const getAllRoleAPI = () => {
  return request.get('/park/sys/role')
}

// 添加员工
export const addEmployeeListAPI = data => {
  return request.post('/park/sys/user', data)
}

// 删除员工
export const delEmployeeAPI = id => {
  return request.delete(`/park/sys/user/${id}`)
}
